package com.ruoyi.disasterassessment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 安全评估模型-测点对象 disaster_assessment_sight
 * 
 * @author hcc
 * @date 2023-12-20
 */
public class DisasterAssessmentSight extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 评估模型id */
    @Excel(name = "评估模型id")
    private Long modelId;

    /** 评估模型code */
    @Excel(name = "评估模型code")
    private String modelCode;

    /** 评估模型name */
    @Excel(name = "评估模型name")
    private String assessmentModel;

    /** 测点编码 */
    @Excel(name = "测点编码")
    private String sightCode;

    /** 测点名称 */
    @Excel(name = "测点名称")
    private String sightName;

    /** 判断方法（1.数值，2.报警预计记录） */
    @Excel(name = "判断方法", readConverterExp = "1=.数值，2.报警预计记录")
    private String judgmentMethod;

    /** 最大值 */
    @Excel(name = "最大值")
    private String maxValue;

    /** 最小值 */
    @Excel(name = "最小值")
    private String minValue;

    /** 判断规则（1.断电,2.断线，3.告警，4离线，5一级预警，6二级预警，7三级预警） */
    @Excel(name = "判断规则", readConverterExp = "1=.断电,2.断线，3.告警，4离线，5一级预警，6二级预警，7三级预警")
    private String judgmentRules;

    /** 1不安全，2预警 */
    @Excel(name = "1不安全，2预警")
    private String type;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createByName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updateByName;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateAt;

    /** 排序 */
    @Excel(name = "排序")
    private Long sorting;

    /** 版本 */
    @Excel(name = "版本")
    private String version;

    /** 状态, 默认1(1:正常；2:冻结；98:关闭；99:删除)； */
    @Excel(name = "状态, 默认1(1:正常；2:冻结；98:关闭；99:删除)；")
    private Long status;

    /** 扩展字段1 */
    @Excel(name = "扩展字段1")
    private String extra1;

    /** 扩展字段2 */
    @Excel(name = "扩展字段2")
    private String extra2;

    /** 扩展字段3 */
    @Excel(name = "扩展字段3")
    private String extra3;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setModelId(Long modelId) 
    {
        this.modelId = modelId;
    }

    public Long getModelId() 
    {
        return modelId;
    }
    public void setModelCode(String modelCode) 
    {
        this.modelCode = modelCode;
    }

    public String getModelCode() 
    {
        return modelCode;
    }
    public void setAssessmentModel(String assessmentModel) 
    {
        this.assessmentModel = assessmentModel;
    }

    public String getAssessmentModel() 
    {
        return assessmentModel;
    }
    public void setSightCode(String sightCode) 
    {
        this.sightCode = sightCode;
    }

    public String getSightCode() 
    {
        return sightCode;
    }
    public void setSightName(String sightName) 
    {
        this.sightName = sightName;
    }

    public String getSightName() 
    {
        return sightName;
    }
    public void setJudgmentMethod(String judgmentMethod) 
    {
        this.judgmentMethod = judgmentMethod;
    }

    public String getJudgmentMethod() 
    {
        return judgmentMethod;
    }
    public void setMaxValue(String maxValue) 
    {
        this.maxValue = maxValue;
    }

    public String getMaxValue() 
    {
        return maxValue;
    }
    public void setMinValue(String minValue) 
    {
        this.minValue = minValue;
    }

    public String getMinValue() 
    {
        return minValue;
    }
    public void setJudgmentRules(String judgmentRules) 
    {
        this.judgmentRules = judgmentRules;
    }

    public String getJudgmentRules() 
    {
        return judgmentRules;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setCreateByName(String createByName) 
    {
        this.createByName = createByName;
    }

    public String getCreateByName() 
    {
        return createByName;
    }
    public void setCreateAt(Date createAt) 
    {
        this.createAt = createAt;
    }

    public Date getCreateAt() 
    {
        return createAt;
    }
    public void setUpdateByName(String updateByName) 
    {
        this.updateByName = updateByName;
    }

    public String getUpdateByName() 
    {
        return updateByName;
    }
    public void setUpdateAt(Date updateAt) 
    {
        this.updateAt = updateAt;
    }

    public Date getUpdateAt() 
    {
        return updateAt;
    }
    public void setSorting(Long sorting) 
    {
        this.sorting = sorting;
    }

    public Long getSorting() 
    {
        return sorting;
    }
    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setExtra1(String extra1) 
    {
        this.extra1 = extra1;
    }

    public String getExtra1() 
    {
        return extra1;
    }
    public void setExtra2(String extra2) 
    {
        this.extra2 = extra2;
    }

    public String getExtra2() 
    {
        return extra2;
    }
    public void setExtra3(String extra3) 
    {
        this.extra3 = extra3;
    }

    public String getExtra3() 
    {
        return extra3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("modelId", getModelId())
            .append("modelCode", getModelCode())
            .append("assessmentModel", getAssessmentModel())
            .append("sightCode", getSightCode())
            .append("sightName", getSightName())
            .append("judgmentMethod", getJudgmentMethod())
            .append("maxValue", getMaxValue())
            .append("minValue", getMinValue())
            .append("judgmentRules", getJudgmentRules())
            .append("type", getType())
            .append("createBy", getCreateBy())
            .append("createByName", getCreateByName())
            .append("createAt", getCreateAt())
            .append("updateBy", getUpdateBy())
            .append("updateByName", getUpdateByName())
            .append("updateAt", getUpdateAt())
            .append("sorting", getSorting())
            .append("remark", getRemark())
            .append("version", getVersion())
            .append("status", getStatus())
            .append("extra1", getExtra1())
            .append("extra2", getExtra2())
            .append("extra3", getExtra3())
            .toString();
    }
}
